package com.qiandw.common.cassandra

import org.springframework.beans.factory.annotation.Value
import org.springframework.stereotype.Component

@Component
class CassandraConfig {

  @Value("${db.test.cassandra.nodes}")
  var nodes: String = _

  @Value("${db.test.cassandra.port}")
  var port: Integer = _

  @Value("${db.test.cassandra.user}")
  var user: String = _

  @Value("${db.test.cassandra.password}")
  var password: String = _

  @Value("${db.test.cassandra.datacenter}")
  var datacenter: String = _

  @Value("${db.test.cassandra.compression}")
  var compression: Boolean = _

  @Value("${db.test.cassandra.defaultKeyspace}")
  var defaultKeyspace: String = _

}
